/*
 * BidTest.java
 *
 * This program demonstrates the use of variable arguments and the
 * foreach loop to accept bids for a ticket. It also displays the highest bid.
 *
 
 */

package com.javacore.day3.bidding;

/**
 * BidTest is a class that passes bids for an airline ticket
 * as variable arguments to a method.
 * @author
 */
public class BidTest {
    
    /**
     * Creates a new instance of BidTest
     */
    public BidTest() {
    }
    
    /**
     * This is the entry point of the application.
     * @param args the command line arguments
     */
    public static void main(String[] args) {
        
        // Create an instance of BidTicket
        BidTicket objBid = new BidTicket();
        System.out.println("The bids received on 12th July 2013 for the " +
                "airline ticket are:");
        
        // Pass four bids to the displayBids method
        objBid.displayBids(100.90, 101.50, 102.00, 102.90);
        
        // Pass three bids to the displayBids method
        System.out.println("\nThe bids received on 13th July 2013 for " +
                "the airline ticket are:");
        objBid.displayBids(206.90, 191.50, 202.00);        
    }
}
